package com.caesar.practice;

/**
 * @author caesar
 * @date 2025/7/9
 * @Description:
 * @apiNote
 */
public class Test{
    public Test(){//这是Test类的构造器，
        Inner s1 = new Inner();
        s1.a = 10;
        Inner s2 = new Inner();
        s2.a = 20;
        Test.Inner s3 = new Test.Inner();
        System.out.println(s3.a);
    }
    class Inner{
        public static int a = 5;
    }
    public static void main(String[] args) {
        Test t = new Test();
        Test.Inner r = t.new Inner();
        System.out.println(r.a);
    }
}
